from django.shortcuts import render

from django.views import View

from . import models
#继承View 视图
class index(View):
    def get(self,request):
        '''
        第一次访问的主页

        带有 数据返回给前端

        :param request:
        :return:
        '''
        data = models.tb_team.objects.filter(is_delete=False)

        return render(request, 'index/index.html',locals())
